## Python Script "update_order"
##bind container=container
##bind context=context
##bind namespace=
##bind script=script
##bind subpath=traverse_subpath
##parameters=
##title=Update Order of questions


response = context.REQUEST.RESPONSE

objects = context.REQUEST.form.items()

try:
    for (id, order ) in objects:
        context.moveObject( id, int( order) )
        response.write( "Moved %s to %s" % (id, order) )
except Exception, e:
    response.write( str( order)  )

response.write( "Worked")
   
